<script setup lang="ts">
import { ref } from '@vue/reactivity';
import MyModal from './components/MyModal.vue';
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
// import HelloWorld from './components/HelloWorld.vue'


const visible = ref(false)

</script>

<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <!-- <HelloWorld msg="Hello Vue 3 + TypeScript + Vite" /> -->
  <MyModal v-model:visible="visible">
    <div>提示</div>
    <div>确定删除信息吗？</div>
  </MyModal>
  <button @click="visible = !visible">打开</button>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  opacity: .7;
}
</style>
